#ifndef MAINWINDOW_H
#define MAINWINDOW_H

#include <QMainWindow>
#include <QStandardItemModel>

#include "parser/parser.h"

namespace Ui {
class MainWindow;
}

class MainWindow : public QMainWindow
{
    Q_OBJECT

public:
    explicit MainWindow(QWidget *parent = 0);
    ~MainWindow();

private:

    Ui::MainWindow *ui;
    Parser *parser;
    QStandardItemModel *model;

    void makeList(QString where);
    void openParser(QString file);

    void makeCombo();

    void setFieldFilter(int index);

private slots:
    void on_actionSobre_triggered();
    void on_actionAbrir_triggered();
    void on_actionExportar_triggered();
    void on_comboBox_activated(int index);
    void on_buttomSearch_clicked();
};

#endif // MAINWINDOW_H
